<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script language="javascript">
	$(document).ready(function(){ 
		$("#logar").click(function(){
			$.post("sistema.php?acao=login/logar",{"login": $("#login").val(),"senha":$("#senha").val()},function(data){
				if(data == 0){
					new Messi("Login e/ou senha inválidos!", {title: 'Erro', 
						titleClass: 'anim error', buttons: [{id: 0, label: 'Ok', val: 'X'}]
					});
				}else {
					window.location = "sistema.php?acao=site/telaInicial";	
				}		
			});	
		});
	});	
</script> 
</head>
	<body>
		<form name="formLogin" id="formLogin" >
			<div class="bloco">
				<div class="login-central">
					<h2 align="center">Login</h2>
						<div class="login centro">
							<label>E-mail</label>
								<input type="text" id="login" name="login" class="tamanho_input cpf" required />
							
							<label>Senha</label>
								<input type="password" id="senha" name="senha" class="tamanho_input" required />
							
							<div class="botao">
								<input type="button" id="logar" name="logar" value="Entrar" />
							</div>
						</div>
				</div>
			</div>
		</form>
	</body>
</html>
